package com.tianyi.delegate;

public class Coucher implements IGoalKeeper {

	//持有受托人的应用
	private IGoalKeeper iGoalKeeper;
	public Coucher(IGoalKeeper iGoalKeeper){
		this.iGoalKeeper=iGoalKeeper;
	}

	//表面上是委托人执行任务，实际上调用的是受托人执行任务的方法
	public void keep() {

		this.iGoalKeeper.keep();
	}

}
